<html>
	<head><title>Modal Dialog</title></head>
	
		<body>	
	<p>Enter some text:</p>
	<input type=text name=modal_text />
	<input type=button value="Close" onClick="javascript:window.returnValue=modal_text.value; window.close();"/>
</body></html>
